
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>

<%-- 导入面包屑 --%>
<jsp:include page="../common/nav.jsp"></jsp:include>


<div class="wrapper wrapper-content">

	<%-- 导入提示信息框 --%>
    <c:if test="${hint!=null&&hint!=''}">
   		<jsp:include page="../common/alert/alert.jsp">
   			<jsp:param value="${hint}" name="alertType"/>
   			<jsp:param value="${alertMessage}" name="alertMessage"/>
   		</jsp:include>
    </c:if>

	<div class="row">
		<div class="col-lg-3">
			<div class="ibox ">
				<div class="ibox-content mailbox-content">
					<div class="file-manager">
						<div class="space-25"></div>
						<h4>会计期间：</h4>
						<select class="form-control" name="periodId" id="periodId">
                        	<option value="" selected="selected">请选择结算期间...</option>
                            <c:forEach items="${requestScope.calendarPeriodList}" var="calendarPeriod">
                        		<option value="${calendarPeriod.periodName}">${calendarPeriod.periodName}</option>
                        	</c:forEach>
                        </select>

						<hr/>
						<ul class="category-list" style="padding: 0;">
							<li><a href="javascript:void(0)" class="text-muted"> <i class="fa fa-exclamation-triangle text-muted"></i>
									选择报表参数后，点击右侧打开报表
							</a></li>
						</ul>
						
						<%-- 
						<br/><br/>
						<button id="closeButton" class="ladda-button ladda-button-demo btn btn-block btn-success btn-lg" data-style="expand-right">打开报表</button>	
						--%>
					</div>
				</div>
			</div>
		</div>
		<div class="col-lg-9 animated fadeInRight">
			<div class="mail-box-header">
				<h3>总账报表</h3>
			</div>
			<div class="mail-box">

				<div class="row">
					<div class="col-lg-12" style="margin-left: 45px;">
						
						<div class="file-box">
							<div class="file">
								<a href="javascript:void(0)" onclick="openTable('getGLAccountBalanceTable')"> <span class="corner"></span>
									<div class="icon">
										<i class="fa fa-file-excel-o"></i>
									</div>
									<div class="file-name">
										<center>科目余额表</center>
									</div>
								</a>
							</div>
						</div>
						
						<div class="file-box">
							<div class="file">
								<a href="javascript:void(0)" onclick="openTable('getGLAccountBalanceTestTable')"> <span class="corner"></span>
									<div class="icon">
										<i class="fa fa-file-excel-o"></i>
									</div>
									<div class="file-name">
										<center>试算平衡表</center>
									</div>
								</a>
							</div>
						</div>
						
						<div class="file-box">
							<div class="file">
								<a href="javascript:void(0)" onclick="openTable('getGLALBalanceTable')"> <span class="corner"></span>
									<div class="icon">
										<i class="fa fa-bar-chart"></i>
									</div>
									<div class="file-name">
										<center>资产负债表</center>
									</div>
								</a>
							</div>
						</div>
						
						<div class="file-box">
							<div class="file">
								<a href="javascript:void(0)"> <span class="corner"></span>
									<div class="icon">
										<i class="fa fa-bar-chart"></i>
									</div>
									<div class="file-name">
										<center>利润表</center>
									</div>
								</a>
							</div>
						</div>
						
						<div class="file-box">
							<div class="file">
								<a href="javascript:void(0)"> <span class="corner"></span>
									<div class="icon">
										<i class="fa fa-bar-chart"></i>
									</div>
									<div class="file-name">
										<center>现金流量表</center>
									</div>
								</a>
							</div>
						</div>

					</div>
				</div>

			</div>
		</div>
	</div>
</div>

<script>
	$(document).ready(function() {
	
	});
	
	function openTable(url){
		if($("#periodId").val()==""){
       		redragonJS.alert("请先选择会计期间");
       	}else{
			window.open('web/gLTable/'+url+'?periodName='+$("#periodId").val());
       	}
	}
</script>